package pojo;

import javax.swing.*;

public class NewTable {
    public static UTable utable =new UTable();
    public static void main(String[] args) {
        JList<String> list = utable.creat_table_peo("readRePun","123");
        String[][] str=new String[list.getModel().getSize()][5];
        for(int i=0;i<list.getModel().getSize();i++) {
            String[] temp= list.getModel().getElementAt(i).split(" , ");
            str[i][0]=temp[0];
            str[i][1]=temp[1];
            str[i][2]=temp[2];
            str[i][3]=temp[3];
            str[i][4]=temp[4];
        }
        String[] c_name = {"A","B","C","D","E"};
        JTable table=new JTable(str,c_name);

    }
}
